import request from '@/utils/request'

export const EXPORT_URL = '/system/new/exporttags'

// 查询列表
export function listTag(query) {
  return request({
    url: '/system/eaTag/list',
    method: 'get',
    params: query
  })
}

// 查询详情
export function getTag(id) {
  return request({
    url: '/system/eaTag/' + id,
    method: 'get'
  })
}

// 新增
export function addTag(data) {
  return request({
    url: '/system/eaTag',
    method: 'post',
    data: data
  })
}

// 修改
export function updateTag(data) {
  return request({
    url: '/system/eaTag',
    method: 'put',
    data: data
  })
}

// 删除
export function delTag(ids) {
  return request({
    url: '/system/eaTag/' + ids,
    method: 'DELETE',
  })
}

// 获取所有标签
export function eaCarTagList(query) {
  return request({
    url: '/system/eaTag/optionSelect',
    method: 'get',
    params: query
  })
}
